/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homework.demo02;

/**
 *
 * @author Administrator
 */
public class Person01 {

    private String name;
    private String phone;
    private String email;

    public String getname() {
        return name;
    }

    public String getphone() {
        return phone;
    }

    public String getemail() {
        return email;
    }

    public void setname(String name) {
        this.name = name;
    }

    public void setemail(String email) {
        this.email = email;
    }

    public void setphone(String phone) {
        this.phone = phone;
    }
}

class people1 extends Person01 {

    public static void main(String[] args) {
        people1 p1 = new people1();
        p1.setname("李四");
        p1.setemail("5611151");
        p1.setphone("187771234567");
        System.out.println("名字是:" + p1.getname());
        System.out.println("邮箱是:" + p1.getemail());
        System.out.println("电话是:" + p1.getphone());



    }
}

class people2 extends Person01 {

    public static void main(String[] args) {
        people2 p2 = new people2();
        p2.setname("王五");
        p2.setemail("5166616");
        p2.setphone("13881234567");
        System.out.println("名字是:" + p2.getname());
        System.out.println("邮箱是:" + p2.getemail());
        System.out.println("电话是:" + p2.getphone());



    }
}

class people3 extends Person01 {

    
    public static void main(String[] args) {
        people3 p3 = new people3();
        p3.setname("黄六");
        p3.setemail("5611161");
        p3.setphone("138771234567");
        System.out.println("名字是:" + p3.getname());
        System.out.println("邮箱是:" + p3.getemail());
        System.out.println("电话是:" + p3.getphone());



    }
}
